package top.wilbert.collegelink.forum.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.wilbert.collegelink.common.vo.UserResponseVo;
import top.wilbert.collegelink.common.vo.UserSimpleInfoVo;

import java.util.List;
import java.util.Map;

/**
 * @author Augus
 * @create 2023-03-01-9:47
 */

@FeignClient("collegelink-user")
public interface UserFeignService {

    @RequestMapping("/user/user/searchUserById")
    public UserResponseVo searchUserById(@RequestParam("userId") Long userId);

    @RequestMapping("/user/user/searchUserByIds")
    public Map<Long, UserSimpleInfoVo> searchUserByIds(@RequestParam("userIds") List<Long> userIds);
}
